package com.atguigu.common.exception;

public class NoStockExcetion extends RuntimeException {
    private Long skuId;

  /*  private String msg;
    public NoStockExcetion(String msg){
        super("商品ID:" + msg + "没有足够的库存");
    }*/
    public NoStockExcetion(Long skuId) {
        super("商品ID:" + skuId + "没有足够的库存");
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
